import { getMiniAppId } from '@/utils/index'
import request from '@/utils/request'
// 引流规则列表
export function flowList(data) {
  return request({
    url: '/admin/flow/index',
    method: 'post',
    data: getMiniAppId(data)
  })
}

// 新建/更新引流规则

export function flowSave(data) {
  return request({
    url: '/admin/flow/save',
    method: 'post',
    data: getMiniAppId(data)
  })
}

// 播放器关联公众号
export function appPlayerOfficial(data) {
  return request({
    url: '/admin/flow/appPlayerOfficial',
    method: 'post',
    data: getMiniAppId(data)
  })
}

// 播放器已经关联的公众号
export function playerOfficial(data) {
  return request({
    url: '/admin/flow/playerOfficial',
    method: 'post',
    data: getMiniAppId(data)
  })
}

